package Enumeration;

enum Season {
    //    public static final Season spring = new Season("春天", "温暖");
//    public static final Season winter = new Season("冬天", "寒冷");
//    public static final Season summer = new Season("夏天", "炎热");
//    public static final Season autumn = new Season("秋天", "凉爽");
    SPRING("春天", "温暖"),SUMMER("夏天","炎热"),AUTUMN("秋天","凉爽"),WINTER("冬天","寒冷");
    private String name;
    private String desc;
    private Season(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public String getName() {
        return name;
    }


    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return "Season2{" +
                "name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
